package com.ruoyi.project.xkx.student.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.project.xkx.student.domain.IdAndListId;
import com.ruoyi.project.xkx.student.domain.XkxStudent;
import org.apache.catalina.LifecycleState;

import java.util.List;

public interface XkxStudentMapper extends BaseMapper<XkxStudent> {

    /**
     * 查询正式学员
     * */
    Page<XkxStudent> getFormalStu(Page<XkxStudent> stu,Integer schoolId, Integer userId, String studentName, String studentPhone);

    /**
     * 查询意向学员
     * */
    Page<XkxStudent> getIntentionStu(Page<XkxStudent> stu,Integer schoolId,Integer userId,String studentName,String studentPhone);

    /**
     * 到期提醒
     * */
    Page<XkxStudent> remind(Page<XkxStudent> stu,Integer schoolId,Integer timeNum,Integer clsHourNum);

    /**
     * 查询顾问绑定有问题的学员
     * */
    Page<XkxStudent> getBindAdviserError(Page<XkxStudent> stu,Integer schoolId,String studentName,String studentPhone);


    /**
     * 更改课程顾问绑定
     * */
    Boolean editAdviser(Integer userId,Integer studentId);


    XkxStudent getStudentByStudentNumber(String studentNumber);

    /**
     * 前台小程序根据课程顾问id查询查询正式学员
     * */
    List<XkxStudent> getFormalStuByUserId(Integer userId,String searchData);

    /**
     * 前台小程序根据课程顾问id查询查询意向学员
     * */
    List<XkxStudent> getIntentionStuByUserId(Integer userId,String searchData);

    /**
     * 前台小程序根据课程顾问id查询查询课程快到期学员
     * */
    List<XkxStudent> getRemindStuByUserId(Integer userId);

    /**
     * 前台小程序根据学员id查询正式学员信息
     * */
    XkxStudent getOneStudentByStudentId(Integer studentId);

    /**
     * 前台小程序根据学员id查询意向学员信息
     * */
    XkxStudent getOneIntentionStuByStudentId(Integer studentId);

}
